﻿<template>
  <a-modal
    :title="title"
    width="40%"
    :visible="visible"
    :confirmLoading="loading"
    @ok="handleSubmit"
    @cancel="()=>{this.visible=false}"
  >
    <a-spin :spinning="loading">
      <a-form-model ref="form" :model="entity" :rules="rules" v-bind="layout">
        <a-form-model-item label="单据类型编码" prop="cVouchType">
          <a-input v-model="entity.cVouchType" autocomplete="off" placeholder="单据类型编码" />
        </a-form-model-item>
        <a-form-model-item label="单据编号" prop="cVouchID">
          <a-input v-model="entity.cVouchID" autocomplete="off" placeholder="单据编号" />
        </a-form-model-item>
        <a-form-model-item label="单据日期" prop="dVouchDate">
          <a-input v-model="entity.dVouchDate" autocomplete="off" placeholder="单据日期" />
        </a-form-model-item>
        <a-form-model-item label="会计期间" prop="iPeriod">
          <a-input v-model="entity.iPeriod" autocomplete="off" placeholder="会计期间" />
        </a-form-model-item>
        <a-form-model-item label="单位编码" prop="cDwCode">
          <a-input v-model="entity.cDwCode" autocomplete="off" placeholder="单位编码" />
        </a-form-model-item>
        <a-form-model-item label="部门编码" prop="cDeptCode">
          <a-input v-model="entity.cDeptCode" autocomplete="off" placeholder="部门编码" />
        </a-form-model-item>
        <a-form-model-item label="业务员编码" prop="cPerson">
          <a-input v-model="entity.cPerson" autocomplete="off" placeholder="业务员编码" />
        </a-form-model-item>
        <a-form-model-item label="项目大类编" prop="cItem_Class">
          <a-input v-model="entity.cItem_Class" autocomplete="off" placeholder="项目大类编" />
        </a-form-model-item>
        <a-form-model-item label="项目编码" prop="cItemCode">
          <a-input v-model="entity.cItemCode" autocomplete="off" placeholder="项目编码" />
        </a-form-model-item>
        <a-form-model-item label="结算方式编码" prop="cSSCode">
          <a-input v-model="entity.cSSCode" autocomplete="off" placeholder="结算方式编码" />
        </a-form-model-item>
        <a-form-model-item label="票据号" prop="cNoteNo">
          <a-input v-model="entity.cNoteNo" autocomplete="off" placeholder="票据号" />
        </a-form-model-item>
        <a-form-model-item label="对应单据类型" prop="cCoVouchType">
          <a-input v-model="entity.cCoVouchType" autocomplete="off" placeholder="对应单据类型" />
        </a-form-model-item>
        <a-form-model-item label="对应单据号" prop="cCoVouchID">
          <a-input v-model="entity.cCoVouchID" autocomplete="off" placeholder="对应单据号" />
        </a-form-model-item>
        <a-form-model-item label="摘要" prop="cDigest">
          <a-input v-model="entity.cDigest" autocomplete="off" placeholder="摘要" />
        </a-form-model-item>
        <a-form-model-item label="银行账号" prop="cBankAccount">
          <a-input v-model="entity.cBankAccount" autocomplete="off" placeholder="银行账号" />
        </a-form-model-item>
        <a-form-model-item label="币种名称" prop="cexch_name">
          <a-input v-model="entity.cexch_name" autocomplete="off" placeholder="币种名称" />
        </a-form-model-item>
        <a-form-model-item label="汇率" prop="iExchRate">
          <a-input v-model="entity.iExchRate" autocomplete="off" placeholder="汇率" />
        </a-form-model-item>
        <a-form-model-item label="本币金额" prop="iAmount">
          <a-input v-model="entity.iAmount" autocomplete="off" placeholder="本币金额" />
        </a-form-model-item>
        <a-form-model-item label="原币金额" prop="iAmount_f">
          <a-input v-model="entity.iAmount_f" autocomplete="off" placeholder="原币金额" />
        </a-form-model-item>
        <a-form-model-item label="本币余额" prop="iRAmount">
          <a-input v-model="entity.iRAmount" autocomplete="off" placeholder="本币余额" />
        </a-form-model-item>
        <a-form-model-item label="原币余额" prop="iRAmount_f">
          <a-input v-model="entity.iRAmount_f" autocomplete="off" placeholder="原币余额" />
        </a-form-model-item>
        <a-form-model-item label="录入人" prop="cOperator">
          <a-input v-model="entity.cOperator" autocomplete="off" placeholder="录入人" />
        </a-form-model-item>
        <a-form-model-item label="核销人" prop="cCancelMan">
          <a-input v-model="entity.cCancelMan" autocomplete="off" placeholder="核销人" />
        </a-form-model-item>
        <a-form-model-item label="出纳签字人" prop="cRPMan">
          <a-input v-model="entity.cRPMan" autocomplete="off" placeholder="出纳签字人" />
        </a-form-model-item>
        <a-form-model-item label="预收预付标志" prop="bPrePay">
          <a-input v-model="entity.bPrePay" autocomplete="off" placeholder="预收预付标志" />
        </a-form-model-item>
        <a-form-model-item label="期初标志" prop="bStartFlag">
          <a-input v-model="entity.bStartFlag" autocomplete="off" placeholder="期初标志" />
        </a-form-model-item>
        <a-form-model-item label="订单号" prop="cOrderNo">
          <a-input v-model="entity.cOrderNo" autocomplete="off" placeholder="订单号" />
        </a-form-model-item>
        <a-form-model-item label="结算科目编码" prop="cCode">
          <a-input v-model="entity.cCode" autocomplete="off" placeholder="结算科目编码" />
        </a-form-model-item>
        <a-form-model-item label="预收付科目编码" prop="cPreCode">
          <a-input v-model="entity.cPreCode" autocomplete="off" placeholder="预收付科目编码" />
        </a-form-model-item>
        <a-form-model-item label="代付标志" prop="iPayForOther">
          <a-input v-model="entity.iPayForOther" autocomplete="off" placeholder="代付标志" />
        </a-form-model-item>
        <a-form-model-item label="结算单来源" prop="cSrcFlag">
          <a-input v-model="entity.cSrcFlag" autocomplete="off" placeholder="结算单来源" />
        </a-form-model-item>
        <a-form-model-item label="凭证线索号" prop="cPzID">
          <a-input v-model="entity.cPzID" autocomplete="off" placeholder="凭证线索号" />
        </a-form-model-item>
        <a-form-model-item label="应收应付标志" prop="cFlag">
          <a-input v-model="entity.cFlag" autocomplete="off" placeholder="应收应付标志" />
        </a-form-model-item>
        <a-form-model-item label="是否发送标志" prop="bSend">
          <a-input v-model="entity.bSend" autocomplete="off" placeholder="是否发送标志" />
        </a-form-model-item>
        <a-form-model-item label="是否接收" prop="bReceived">
          <a-input v-model="entity.bReceived" autocomplete="off" placeholder="是否接收" />
        </a-form-model-item>
        <a-form-model-item label="结算科目项目" prop="csItemCode">
          <a-input v-model="entity.csItemCode" autocomplete="off" placeholder="结算科目项目" />
        </a-form-model-item>
        <a-form-model-item label="主表标识" prop="iID">
          <a-input v-model="entity.iID" autocomplete="off" placeholder="主表标识" />
        </a-form-model-item>
        <a-form-model-item label="现结线索" prop="cCancelNo">
          <a-input v-model="entity.cCancelNo" autocomplete="off" placeholder="现结线索" />
        </a-form-model-item>
        <a-form-model-item label="对方银行" prop="cBank">
          <a-input v-model="entity.cBank" autocomplete="off" placeholder="对方银行" />
        </a-form-model-item>
        <a-form-model-item label="本单位银行名称" prop="cNatBank">
          <a-input v-model="entity.cNatBank" autocomplete="off" placeholder="本单位银行名称" />
        </a-form-model-item>
        <a-form-model-item label="本单位银行账号" prop="cNatBankAccount">
          <a-input v-model="entity.cNatBankAccount" autocomplete="off" placeholder="本单位银行账号" />
        </a-form-model-item>
        <a-form-model-item label="银行导入标志" prop="bFromBank">
          <a-input v-model="entity.bFromBank" autocomplete="off" placeholder="银行导入标志" />
        </a-form-model-item>
        <a-form-model-item label="导出银行标志" prop="bToBank">
          <a-input v-model="entity.bToBank" autocomplete="off" placeholder="导出银行标志" />
        </a-form-model-item>
        <a-form-model-item label="银行确认标志" prop="bSure">
          <a-input v-model="entity.bSure" autocomplete="off" placeholder="银行确认标志" />
        </a-form-model-item>
        <a-form-model-item label="单据模版号" prop="VT_ID">
          <a-input v-model="entity.VT_ID" autocomplete="off" placeholder="单据模版号" />
        </a-form-model-item>
        <a-form-model-item label="审核人" prop="cCheckMan">
          <a-input v-model="entity.cCheckMan" autocomplete="off" placeholder="审核人" />
        </a-form-model-item>
        <a-form-model-item label="自定义项1" prop="cDefine1">
          <a-input v-model="entity.cDefine1" autocomplete="off" placeholder="自定义项1" />
        </a-form-model-item>
        <a-form-model-item label="自定义项2" prop="cDefine2">
          <a-input v-model="entity.cDefine2" autocomplete="off" placeholder="自定义项2" />
        </a-form-model-item>
        <a-form-model-item label="自定义项3" prop="cDefine3">
          <a-input v-model="entity.cDefine3" autocomplete="off" placeholder="自定义项3" />
        </a-form-model-item>
        <a-form-model-item label="自定义项4" prop="cDefine4">
          <a-input v-model="entity.cDefine4" autocomplete="off" placeholder="自定义项4" />
        </a-form-model-item>
        <a-form-model-item label="自定义项5" prop="cDefine5">
          <a-input v-model="entity.cDefine5" autocomplete="off" placeholder="自定义项5" />
        </a-form-model-item>
        <a-form-model-item label="自定义项6" prop="cDefine6">
          <a-input v-model="entity.cDefine6" autocomplete="off" placeholder="自定义项6" />
        </a-form-model-item>
        <a-form-model-item label="自定义项7" prop="cDefine7">
          <a-input v-model="entity.cDefine7" autocomplete="off" placeholder="自定义项7" />
        </a-form-model-item>
        <a-form-model-item label="自定义项8" prop="cDefine8">
          <a-input v-model="entity.cDefine8" autocomplete="off" placeholder="自定义项8" />
        </a-form-model-item>
        <a-form-model-item label="自定义项9" prop="cDefine9">
          <a-input v-model="entity.cDefine9" autocomplete="off" placeholder="自定义项9" />
        </a-form-model-item>
        <a-form-model-item label="自定义项10" prop="cDefine10">
          <a-input v-model="entity.cDefine10" autocomplete="off" placeholder="自定义项10" />
        </a-form-model-item>
        <a-form-model-item label="自定义项11" prop="cDefine11">
          <a-input v-model="entity.cDefine11" autocomplete="off" placeholder="自定义项11" />
        </a-form-model-item>
        <a-form-model-item label="自定义项12" prop="cDefine12">
          <a-input v-model="entity.cDefine12" autocomplete="off" placeholder="自定义项12" />
        </a-form-model-item>
        <a-form-model-item label="自定义项13" prop="cDefine13">
          <a-input v-model="entity.cDefine13" autocomplete="off" placeholder="自定义项13" />
        </a-form-model-item>
        <a-form-model-item label="自定义项14" prop="cDefine14">
          <a-input v-model="entity.cDefine14" autocomplete="off" placeholder="自定义项14" />
        </a-form-model-item>
        <a-form-model-item label="自定义项15" prop="cDefine15">
          <a-input v-model="entity.cDefine15" autocomplete="off" placeholder="自定义项15" />
        </a-form-model-item>
        <a-form-model-item label="自定义项16" prop="cDefine16">
          <a-input v-model="entity.cDefine16" autocomplete="off" placeholder="自定义项16" />
        </a-form-model-item>
        <a-form-model-item label="时间戳" prop="Ufts">
          <a-input v-model="entity.Ufts" autocomplete="off" placeholder="时间戳" />
        </a-form-model-item>
        <a-form-model-item label="项目名称" prop="cItemName">
          <a-input v-model="entity.cItemName" autocomplete="off" placeholder="项目名称" />
        </a-form-model-item>
        <a-form-model-item label="合同类型" prop="cContractType">
          <a-input v-model="entity.cContractType" autocomplete="off" placeholder="合同类型" />
        </a-form-model-item>
        <a-form-model-item label="合同号" prop="cContractID">
          <a-input v-model="entity.cContractID" autocomplete="off" placeholder="合同号" />
        </a-form-model-item>
        <a-form-model-item label="数量" prop="iAmount_s">
          <a-input v-model="entity.iAmount_s" autocomplete="off" placeholder="数量" />
        </a-form-model-item>
        <a-form-model-item label="是否工作流控制" prop="IsWfControlled">
          <a-input v-model="entity.IsWfControlled" autocomplete="off" placeholder="是否工作流控制" />
        </a-form-model-item>
        <a-form-model-item label="来源" prop="iSource">
          <a-input v-model="entity.iSource" autocomplete="off" placeholder="来源" />
        </a-form-model-item>
        <a-form-model-item label="发货单" prop="sDLCode">
          <a-input v-model="entity.sDLCode" autocomplete="off" placeholder="发货单" />
        </a-form-model-item>
        <a-form-model-item label="登记标志" prop="RegisterFlag">
          <a-input v-model="entity.RegisterFlag" autocomplete="off" placeholder="登记标志" />
        </a-form-model-item>
        <a-form-model-item label="审核状态" prop="iverifystate">
          <a-input v-model="entity.iverifystate" autocomplete="off" placeholder="审核状态" />
        </a-form-model-item>
        <a-form-model-item label="退回次数" prop="ireturncount">
          <a-input v-model="entity.ireturncount" autocomplete="off" placeholder="退回次数" />
        </a-form-model-item>
        <a-form-model-item label="制单时间" prop="dcreatesystime">
          <a-input v-model="entity.dcreatesystime" autocomplete="off" placeholder="制单时间" />
        </a-form-model-item>
        <a-form-model-item label="审核时间" prop="dverifysystime">
          <a-input v-model="entity.dverifysystime" autocomplete="off" placeholder="审核时间" />
        </a-form-model-item>
        <a-form-model-item label="修改时间" prop="dmodifysystime">
          <a-input v-model="entity.dmodifysystime" autocomplete="off" placeholder="修改时间" />
        </a-form-model-item>
        <a-form-model-item label="修改人" prop="cmodifier">
          <a-input v-model="entity.cmodifier" autocomplete="off" placeholder="修改人" />
        </a-form-model-item>
        <a-form-model-item label="修改日期" prop="dmoddate">
          <a-input v-model="entity.dmoddate" autocomplete="off" placeholder="修改日期" />
        </a-form-model-item>
        <a-form-model-item label="审核日期" prop="dverifydate">
          <a-input v-model="entity.dverifydate" autocomplete="off" placeholder="审核日期" />
        </a-form-model-item>
        <a-form-model-item label="预算审批状态" prop="ibg_overflag">
          <a-input v-model="entity.ibg_overflag" autocomplete="off" placeholder="预算审批状态" />
        </a-form-model-item>
        <a-form-model-item label="超预算审批人" prop="cbg_auditor">
          <a-input v-model="entity.cbg_auditor" autocomplete="off" placeholder="超预算审批人" />
        </a-form-model-item>
        <a-form-model-item label="预算审批时间" prop="cbg_audittime">
          <a-input v-model="entity.cbg_audittime" autocomplete="off" placeholder="预算审批时间" />
        </a-form-model-item>
        <a-form-model-item label="预算审批结果" prop="controlresult">
          <a-input v-model="entity.controlresult" autocomplete="off" placeholder="预算审批结果" />
        </a-form-model-item>
        <a-form-model-item label="预算项目编码" prop="cbg_itemcode">
          <a-input v-model="entity.cbg_itemcode" autocomplete="off" placeholder="预算项目编码" />
        </a-form-model-item>
        <a-form-model-item label="预算项目名称" prop="cbg_itemname">
          <a-input v-model="entity.cbg_itemname" autocomplete="off" placeholder="预算项目名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型1编码" prop="cbg_caliberkey1">
          <a-input v-model="entity.cbg_caliberkey1" autocomplete="off" placeholder="预算口径类型1编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型1名称" prop="cbg_caliberkeyname1">
          <a-input v-model="entity.cbg_caliberkeyname1" autocomplete="off" placeholder="预算口径类型1名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型2编码" prop="cbg_caliberkey2">
          <a-input v-model="entity.cbg_caliberkey2" autocomplete="off" placeholder="预算口径类型2编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型2名称" prop="cbg_caliberkeyname2">
          <a-input v-model="entity.cbg_caliberkeyname2" autocomplete="off" placeholder="预算口径类型2名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型3编码" prop="cbg_caliberkey3">
          <a-input v-model="entity.cbg_caliberkey3" autocomplete="off" placeholder="预算口径类型3编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型3名称" prop="cbg_caliberkeyname3">
          <a-input v-model="entity.cbg_caliberkeyname3" autocomplete="off" placeholder="预算口径类型3名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径1编码" prop="cbg_calibercode1">
          <a-input v-model="entity.cbg_calibercode1" autocomplete="off" placeholder="预算口径1编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径1名称" prop="cbg_calibername1">
          <a-input v-model="entity.cbg_calibername1" autocomplete="off" placeholder="预算口径1名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径2编码" prop="cbg_calibercode2">
          <a-input v-model="entity.cbg_calibercode2" autocomplete="off" placeholder="预算口径2编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径2名称" prop="cbg_calibername2">
          <a-input v-model="entity.cbg_calibername2" autocomplete="off" placeholder="预算口径2名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径3编码" prop="cbg_calibercode3">
          <a-input v-model="entity.cbg_calibercode3" autocomplete="off" placeholder="预算口径3编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径3名称" prop="cbg_calibername3">
          <a-input v-model="entity.cbg_calibername3" autocomplete="off" placeholder="预算口径3名称" />
        </a-form-model-item>
        <a-form-model-item label="是否预算控制" prop="ibg_ctrl">
          <a-input v-model="entity.ibg_ctrl" autocomplete="off" placeholder="是否预算控制" />
        </a-form-model-item>
        <a-form-model-item label="预算审批结果" prop="cbg_auditopinion">
          <a-input v-model="entity.cbg_auditopinion" autocomplete="off" placeholder="预算审批结果" />
        </a-form-model-item>
        <a-form-model-item label="申请单号" prop="cApplyCode">
          <a-input v-model="entity.cApplyCode" autocomplete="off" placeholder="申请单号" />
        </a-form-model-item>
        <a-form-model-item label="凭证编号" prop="cPZNum">
          <a-input v-model="entity.cPZNum" autocomplete="off" placeholder="凭证编号" />
        </a-form-model-item>
        <a-form-model-item label="凭证日期" prop="doutbilldate">
          <a-input v-model="entity.doutbilldate" autocomplete="off" placeholder="凭证日期" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型4编码" prop="cbg_caliberkey4">
          <a-input v-model="entity.cbg_caliberkey4" autocomplete="off" placeholder="预算口径类型4编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型4名称" prop="cbg_caliberkeyname4">
          <a-input v-model="entity.cbg_caliberkeyname4" autocomplete="off" placeholder="预算口径类型4名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型5编码" prop="cbg_caliberkey5">
          <a-input v-model="entity.cbg_caliberkey5" autocomplete="off" placeholder="预算口径类型5编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型5名称" prop="cbg_caliberkeyname5">
          <a-input v-model="entity.cbg_caliberkeyname5" autocomplete="off" placeholder="预算口径类型5名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型6编码" prop="cbg_caliberkey6">
          <a-input v-model="entity.cbg_caliberkey6" autocomplete="off" placeholder="预算口径类型6编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径类型6名称" prop="cbg_caliberkeyname6">
          <a-input v-model="entity.cbg_caliberkeyname6" autocomplete="off" placeholder="预算口径类型6名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径4编码" prop="cbg_calibercode4">
          <a-input v-model="entity.cbg_calibercode4" autocomplete="off" placeholder="预算口径4编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径4名称" prop="cbg_calibername4">
          <a-input v-model="entity.cbg_calibername4" autocomplete="off" placeholder="预算口径4名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径5编码" prop="cbg_calibercode5">
          <a-input v-model="entity.cbg_calibercode5" autocomplete="off" placeholder="预算口径5编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径5名称" prop="cbg_calibername5">
          <a-input v-model="entity.cbg_calibername5" autocomplete="off" placeholder="预算口径5名称" />
        </a-form-model-item>
        <a-form-model-item label="预算口径6编码" prop="cbg_calibercode6">
          <a-input v-model="entity.cbg_calibercode6" autocomplete="off" placeholder="预算口径6编码" />
        </a-form-model-item>
        <a-form-model-item label="预算口径6名称" prop="cbg_calibername6">
          <a-input v-model="entity.cbg_calibername6" autocomplete="off" placeholder="预算口径6名称" />
        </a-form-model-item>
        <a-form-model-item label="打印次数" prop="iPrintCount">
          <a-input v-model="entity.iPrintCount" autocomplete="off" placeholder="打印次数" />
        </a-form-model-item>
        <a-form-model-item label="预定部门" prop="cReserveDeptCode">
          <a-input v-model="entity.cReserveDeptCode" autocomplete="off" placeholder="预定部门" />
        </a-form-model-item>
        <a-form-model-item label="交易模式" prop="bDealMode">
          <a-input v-model="entity.bDealMode" autocomplete="off" placeholder="交易模式" />
        </a-form-model-item>
        <a-form-model-item label="业务类型" prop="iBusType">
          <a-input v-model="entity.iBusType" autocomplete="off" placeholder="业务类型" />
        </a-form-model-item>
        <a-form-model-item label="付款类型" prop="iPayType">
          <a-input v-model="entity.iPayType" autocomplete="off" placeholder="付款类型" />
        </a-form-model-item>
        <a-form-model-item label="委托方编码" prop="cagentcuscode">
          <a-input v-model="entity.cagentcuscode" autocomplete="off" placeholder="委托方编码" />
        </a-form-model-item>
        <a-form-model-item label="单据条码" prop="csysbarcode">
          <a-input v-model="entity.csysbarcode" autocomplete="off" placeholder="单据条码" />
        </a-form-model-item>
        <a-form-model-item label="当前审批人" prop="cCurrentAuditor">
          <a-input v-model="entity.cCurrentAuditor" autocomplete="off" placeholder="当前审批人" />
        </a-form-model-item>
        <a-form-model-item label="日记账ID" prop="lAcctID">
          <a-input v-model="entity.lAcctID" autocomplete="off" placeholder="日记账ID" />
        </a-form-model-item>
        <a-form-model-item label="本币无税申请金额" prop="iNotRateAmount">
          <a-input v-model="entity.iNotRateAmount" autocomplete="off" placeholder="本币无税申请金额" />
        </a-form-model-item>
        <a-form-model-item label="无税申请金额" prop="iNotRateAmount_f">
          <a-input v-model="entity.iNotRateAmount_f" autocomplete="off" placeholder="无税申请金额" />
        </a-form-model-item>
      </a-form-model>
    </a-spin>
  </a-modal>
</template>

<script>
export default {
  props: {
    parentObj: Object
  },
  data () {
    return {
      layout: {
        labelCol: { span: 5 },
        wrapperCol: { span: 18 }
      },
      visible: false,
      loading: false,
      entity: {},
      rules: {},
      title: ''
    }
  },
  methods: {
    init () {
      this.visible = true
      this.entity = {}
      this.$nextTick(() => {
        this.$refs['form'].clearValidate()
      })
    },
    openForm (id, title) {
      this.init()
      this.title = title
      if (id) {
        this.loading = true
        this.$http.post('/OrderManagement/Ap_CloseBill/GetTheData', { id: id }).then(resJson => {
          this.loading = false

          this.entity = resJson.Data
        })
      }
    },
    handleSubmit () {
      this.$refs['form'].validate(valid => {
        if (!valid) {
          return
        }
        this.loading = true
        this.$http.post('/OrderManagement/Ap_CloseBill/SaveData', this.entity).then(resJson => {
          this.loading = false

          if (resJson.Success) {
            this.$message.success('操作成功!')
            this.visible = false

            this.parentObj.getDataList()
          } else {
            this.$message.error(resJson.Msg)
          }
        })
      })
    }
  }
}
</script>
